package com.fanhang.samples.spring.shell.service.impl;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.fanhang.samples.spring.shell.service.RoleService;
import com.fanhang.samples.spring.shell.po.Role;

@Repository
public class RoleServiceImpl implements RoleService {

	@Override
	public Role get(Long id) {
		return new Role(id);
	}
	
	@Override
	public List<Role> getList(Role model) throws Exception {
		return Arrays.asList(model);
	}

	@Override
	public int save(Role model) {
		System.out.println(model);
		return 1;
	}

	@Override
	public int delete(Role model) {
		System.out.println(model);
		return 1;
	}

	@Override
	public int update(Role model) {
		System.out.println(model);
		return 1;
	}
}
